<template>
  <a-space>
    <a @click="$emit('edit')">编辑</a>
    <a-popconfirm :title="confirmText" @confirm="$emit('delete')">
      <a-button type="link" danger>删除</a-button>
    </a-popconfirm>
  </a-space>
</template>

<script setup lang="ts">
withDefaults(defineProps<{ confirmText?: string }>(), { confirmText: '确定删除？' })
</script>

<style scoped>
</style>


